<?php

declare(strict_types=1);

namespace App\CustHub\Model;

use Mine\MineModel;

/**
 * @property int $id 
 * @property int $uid 
 * @property int $main_uid 
 * @property string $name 方案名称
 * @property int $wechat_type 类型：0=个微 1=企微
 * @property int $role_model 角色模式：0=单角色 1=多角色
 * @property array $crew_list 剧组配置
 * @property array $role_list 角色
 * @property int $role_num 角色数量
 * @property int $room_num 群数量
 * @property int $group_num 分组数量
 * @property int $sort 排序
 * @property \Carbon\Carbon $created_at 
 * @property \Carbon\Carbon $updated_at 
 */
class ChRoleScheme extends MineModel
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'ch_role_scheme';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'uid', 'main_uid', 'name', 'wechat_type', 'role_model', 'crew_list', 'role_list', 'role_num', 'room_num', 'group_num', 'sort', 'created_at', 'updated_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'uid' => 'integer', 'main_uid' => 'integer', 'wechat_type' => 'integer', 'role_model' => 'integer', 'crew_list' => 'array', 'role_list' => 'array', 'role_num' => 'integer', 'room_num' => 'integer', 'group_num' => 'integer', 'sort' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
